﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<InfoTech.Mvc.LanTranh.MucVu.Models.GIAODANModel>" %>
<div class="content-box">
    <a name="ruatoi"></a>
    <div class="content-box-header">
        <h3>
            Rửa Tội</h3>
    </div>
    <!-- End .content-box-header -->
    <div class="content-box-content">
        <%Html.RenderAction("ViewUserControlRuaToi", new { giaodanModel = Model });%>
    </div>
    <!-- End .content-box-content -->
</div>
<div class="clear">
</div>
<div class="content-box">
    <a name="ruocle"></a>
    <div class="content-box-header">
        <h3>
            Rước Lễ</h3>
    </div>
    <!-- End .content-box-header -->
    <div class="content-box-content">
        <%Html.RenderAction("ViewUserControlRuocLe", new { giaodanModel = Model });%>
    </div>
    <!-- End .content-box-content -->
</div>
<div class="content-box">
    <a name="themsuc"></a>
    <div class="content-box-header">
        <h3>
            Thêm Sức</h3>
    </div>
    <!-- End .content-box-header -->
    <div class="content-box-content">
        <%Html.RenderAction("ViewUserControlThemSuc", new { giaodanModel = Model });%>
    </div>
    <!-- End .content-box-content -->
</div>
<script language="javascript" type="text/javascript">
    var bitich;
    function TimLinhMuc(type) {
        bitich = type;
        Dialog('<%=Url.Action("TimLinhMuc","GiaDinhCongGiao",new {id=ViewData["GENDERID"]}) %>', type, 'Tìm Linh Mục', 665, 300, HideDialog, ClearDataLinhMuc);
    }
    function TimNguoiDoDau(type) {
        bitich = type;
        Dialog('<%=Url.Action("TimPhuThan1","GiaDinhCongGiao",new {id=ViewData["GENDERID"]}) %>', type, 'Tìm Người Đỡ Đầu', 1000, 335, HideDialog, ClearDataBiTich);
    }
    function ReceiveBiTich(id, value) {
        $('.' + bitich + ' #TENNGUOIDODAU').val(value);
        $('.' + bitich + ' #NGUOIDODAUID').val(id);
    }
    function ClearDataBiTich(type) {
        $('.' + bitich + ' #TENNGUOIDODAU').val('');
        $('.' + bitich + ' #NGUOIDODAUID').val('');
    }
    function ReceiveLinhMuc(id, value) {
        $('.' + bitich + ' #TENLINHMUC').val(value);
        $('.' + bitich + ' #MALINHMUC').val(id);
    }
    function ClearDataLinhMuc(type) {
        $('.' + bitich + ' #TENLINHMUC').val('');
        $('.' + bitich + ' #MALINHMUC').val('');
    }
</script>
